# GRACE JOP Replication Codebook

Several variables in this dataset were incorporated from the following works and are also cited in the main manuscript:
Variables beginning with "v": Klarner, Carl, William Berry, Thomas Carsey, Malcolm Jewell, Richard Niemi, Lynda Powell, and James Snyder. 2016. State Legislative Election Returns (1967-2015). 
Squire's Legislative Professionalization Index score: Squire, P. 2017. “Measuring State Legislative Professionalism: The Squire Index Revisited.” State Politics & Policy Quarterly 7 (2): 211–27. 

## GRACE_JOP_Replication_7_28_22 Variables
- v02: State abbreviation
- v03: State FIPS Code
- v05: Year
- v07: Legislative chamber. Upper house = 8, lower house = 7
- v08: District Name
- v09: District Number
- v10a: District Post Position that Identifies a Geographic Locale
- v10b: District Post Position That Identifies a Post in a Multimember District (MMD)
- v10c: District Post Position That Identifies Both a Geographic Locale and a Post in a Multimember District
- v12: District Type. 1= Single Member District
- v22: Incumbency Dummy
- v23: Candidate votes
- v24: Won election
- afampoppct: African American population percentage
- asampoppct: Asian American population percentage
- latpoppct: Latin American population percentage
- whpoppct: White population percentage
- pocpoppct: Person of Color population percentage
- majpocpop: Majority POC population
- majwhpop: Majority white population
- graceuniqid: Unique GRACE data set id
- basket_lat: Is the candidate Latina or Latino?
- basket_asam: Is the candidate Asian American?
- basket_afam: Is the candidate African American?
- basket_women: Is the candidate a woman?
- basket_men: Is the candidate a man?
- basket_mena: Is the candidate Middle Eastern/North African?
- basket_na: Is the candidate Native American or Indigenous?
- basket_asamm: Is the candidate an Asian American man?
- basket_asamw: Is the candidate an Asian American woman?
- basket_latm: Is the candidate Latino?
- basket_latw: Is the candidate Latina?
- basket_afamm: Is the candidate an African American man?
- basket_afamw: Is the candidate an African American woman?
- basket_white: Is the candidate white?
- basket_whm: Is the candidate a white man?
- basket_whw: Is the candidate a white woman
- ballots_2021: Unique Identifier for each Ballot
- partycomb: 1= Democrat 2= Republican/Independent
- tlimit: Term limits
- legprof: Squire's Legislative Professionalization Index Score
- demvoteshareballot_2020: Ballot Vote share of Democrats
- distrepubstr: Difference in District Republican vote share relative to state chamber median
- openelect: Election with no Incumbent on the Ballot
- multimem: Multi-member district
- allincfmt: Income (10k)
- educcolldeg: Percentage of district with college education
- unemppct: Unemployment percentage in district
- repind_win: Did a Republican or Independent win?
- b_afamwwinner: Was the winner of the election an African American woman?
- b_afammwinner: Was the winner of the election an African American man?
- b_asamwwinner: Was the winner of the election an Asian American woman?
- b_asammwinner: Was the winner of the election an Asian American man?
- b_latwwinner: Was the winner of the election Latina?
- b_latmwinner: Was the winner of the election Latino?
- b_whwwinner: Was the winner of the election a white woman?
- b_whmwinner: Was the winner of the election a white man?
- b_latmD: Latino Democrat on the Ballot
- b_latwD: Latina Democrat on the Ballot
- b_latmR: Latino Republican or Independent on the Ballot
- taglatreppop: Tag variable used for generating Figure 1, denotes districts where Latina or Latino have won.
- tagRlatpoppct: Tag variable used for generating Figure 1, denotes Latina/o district populations where Latina or Latino have won.


## GRACE_CVAP_JOP_Replication_7_28_22.dta
- v02: State abbreviation
- v03: State FIPS Code
- v05: Year
- v07: Legislative chamber. Upper house = 8, lower house = 7
- v08: District Name
- v09: District Number
- v10a: District Post Position that Identifies a Geographic Locale
- v10b: District Post Position That Identifies a Post in a Multimember District (MMD)
- v10c: District Post Position That Identifies Both a Geographic Locale and a Post in a Multimember District
- v12: District Type. 1= Single Member District
- v22: Incumbency Dummy
- v23: Candidate votes
- v24: Won election
- partycomb: 1= Democrat 2= Republican/Independent
- basket_lat: Is the candidate Latin American?
- basket_asam: Is the candidate Asian American?
- basket_afam: Is the candidate African American?
- basket_women: Is the candidate a woman?
- basket_men: Is the candidate a man?
- basket_mena: Is the candidate Middle Eastern/North African?
- basket_na: Is the candidate Native American or Indigenous?
- basket_asamm: Is the candidate an Asian American man?
- basket_asamw: Is the candidate an Asian American woman?
- basket_latm: Is the candidate Latino?
- basket_latw: Is the candidate Latina
- basket_afamm: Is the candidate an African American man?
- basket_afamw: Is the candidate an African American woman?
- basket_white: Is the candidate white?
- basket_whm: Is the candidate a white man?
- basket_whw: Is the candidate a white woman
- afampoppct: African American population percentage
- asampoppct: Asian American population percentage
- latpoppct: Latin American population percentage
- whpoppct: White population percentage
- pocpoppct: Person of Color population percentage
- latcvappct: Latin American population percentage in CVAP data
- whcvappct: White population percentage in CVAP data
- afamcvappct: African American population percentage in CVAP data
- asamcvappct: Asian American population percentage in CVAP data
- othcvappct: Other ethnic group population percentage in CVAP data
- tlimit: Term limits
- legprof: Squire's Legislative Professionalization Index Score
- demvoteshareballot_2020: Ballot Vote share of Democrats
- distrepubstr: Difference in District Republican vote share relative to state chamber median
- openelect: Election with no Incumbent on the Ballot
- multimem: Multi-member district
- allincfmt: Income (10k)
- educcolldeg: Percentage of district with college education
- unemppct: Unemployment percentage in district
- repind_win: Did a Republican or Independent win?
- b_afamwwinner: Was the winner of the election an African American woman?
- b_afammwinner: Was the winner of the election an African American man?
- b_asamwwinner: Was the winner of the election an Asian American woman?
- b_asammwinner: Was the winner of the election an Asian American man?
- b_latwwinner: Was the winner of the election Latina?
- b_latmwinner: Was the winner of the election Latino?
- b_whwwinner: Was the winner of the election a white woman?
- b_whmwinner: Was the winner of the election a white man?
- b_latmD: Latino Democrat on the Ballot
- b_latwD: Latina Democrat on the Ballot
- b_latmR: Latino Republican or Independent on the Ballot